package zhou.jan21;

import java.sql.SQLException;

public class UserService {
	public boolean login(String username,String pwd) throws SQLException{  //第一个，往外抛
		boolean result=false;
		UserDao ud=new UserDao();
		User u=ud.getUserByName(username);
		if(pwd.equals(u.getPwd())){
			result=true;
		}				
		return result;
	}

}
